﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DO.Workflows;

namespace DO.ETL
{
    public class CitationParserComponent:WorkflowComponentBase 
    {
        public CitationParserComponent():base()
        {
            this.ComponentName = "Citation parser";
            this.Description = "Extract titla, author, journal, etc from citation text";
            this.ComponentIconName = "Journal2.png";
            this.ComponentImageName = "Journal2.png";
            
            this._Instruction=new CitationParserInstruction(
                Guid.Empty,Guid.Empty,
                string.Empty,string.Empty,string.Empty,string.Empty,
                string.Empty,string.Empty,string.Empty,string.Empty,
                string.Empty,string.Empty,string.Empty,string.Empty,
                string.Empty,string.Empty,
                CitationParserAlgorithm.DecisionTree);
            this._Output=new CitationParserOutput(Guid.Empty,Guid.Empty,0,0);
        }

        #region Overrides of WorkflowComponentBase

        private CitationParserInstruction _Instruction;
        public override InstructionBase Instruction
        {
            get
            {
                return _Instruction;
            }
            set
            {
                _Instruction = (CitationParserInstruction) value;
            }
        }

        private CitationParserOutput _Output;
        public override ResultBase Output
        {
            get
            {
                return _Output;
            }
            set
            {
                _Output = (CitationParserOutput) value;
            }
        }

        #endregion
    }
}
